package com.fanketly.funacg2.data.db

import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent

@Module
@InstallIn(SingletonComponent::class)
object DaoModule {
    @Provides
    fun providesWorksDao(
        database: FunAcgDatabase,
    ): WorkDao = database.worksDao()
    @Provides
    fun providesHistoryDao(
        database: FunAcgDatabase,
    ): HistoryDao = database.historyDao()
}